<#import "add_base.ftl" as add/>
<@add.html>
<#include "add_mb.ftl">

        <tr>
          <th>新会籍类型</th>
          <td colspan="3"><select name="cardType" class="w2" req="新会籍类型"><option value="">--请选择--</option></select></td>
        </tr>

<script type="text/javascript">
  function fillData(mc) {
    getJson("getCardTypeList?saleType="+mc.saleType, function(data){
      if(data.ret) {
        fillCardType(data.data);
      } else {
        window.alert(data.msg);
      }
    });
  }
  function fillCardType(tl) {
    var sl = getEl("fm_input").cardType;
    if(!sl) return;
    sl.length = 1;
    for(var i=0; i<tl.length; i++) {
      sl.options.add(new Option(tl[i].code+' - '+tl[i].name, tl[i].code));
    }
  }
  function clearData() {
    var fm = getEl("fm_input");
    fm.cardType.length = 1;
  }
</script>
</@add.html>